﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	xmlns:XMLTV="clr-namespace:Guide.XMLTV"
	xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
	xmlns:Guide="clr-namespace:Guide"
	xmlns:Guide_XMLTV="clr-namespace:Guide.XMLTV"
	x:Class="Guide.myGuide"
	x:Name="UserControl"
	Width="328" Height="430.638" FontFamily="Verdana" FontWeight="Bold" ClipToBounds="False" xmlns:d="http://schemas.microsoft.com/expression/blend/2008">

	<UserControl.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="AllResources.xaml"/>
      </ResourceDictionary.MergedDictionaries>
    	<Guide_XMLTV:CategoryColorValueConvertor x:Key="CategoryColorValueConvertor"/>
    	<Guide_XMLTV:ActiveGrabberValueConvertor x:Key="ActiveGrabberValueConvertor"/>
    	<Guide_XMLTV:ChannelLogoWidthValueConverter x:Key="ChannelLogoWidthValueConverter"/>
    
    
    <ObjectDataProvider x:Key="GuideDS" d:IsDataSource="True"/>
    
		<DataTemplate x:Key="ChannelsTemplate">
			<StackPanel Width="330">
				<StackPanel.Background>
					<LinearGradientBrush EndPoint="0.5,0.011" StartPoint="0.5,0">
						<GradientStop Color="#FFC7C7C7" Offset="0"/>
						<GradientStop Color="#FFFFFFFF" Offset="1"/>
					</LinearGradientBrush>
				</StackPanel.Background>
				<Image Source="{Binding Path=IconUrl}" HorizontalAlignment="Left" Margin="12,10,0,0" Width="40" Height="40"/>
				<ItemsControl ItemsSource="{Binding Path=Programs}" Width="320" Margin="0,-31,0,0">
					<ItemsControl.ItemTemplate>
						<DataTemplate>
							<DataTemplate.Resources>
								<Storyboard x:Key="Highlight">
									<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
										<SplineColorKeyFrame KeyTime="00:00:00" Value="#001D97DC"/>
										<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#331D97DC"/>
									</ColorAnimationUsingKeyFrames>
								</Storyboard>
								<Storyboard x:Key="OffLight">
									<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
										<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#001D97DC"/>
									</ColorAnimationUsingKeyFrames>
								</Storyboard>
							</DataTemplate.Resources>
							<StackPanel Background="#001D97DC" x:Name="stackPanel" Cursor="Hand">
								<Grid Width="Auto" Height="Auto" Margin="35,0,0,0" Background="#00000000" MouseLeftButtonUp="Grid_MouseLeftButtonUp">
									<Label Content="{Binding Path=StartTimeShort, Mode=Default}" x:Name="_hour" Padding="0,2,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="19,0,0,0" Width="Auto" FontFamily="Calibri" FontSize="11" FontStyle="Italic" RenderTransformOrigin="0.587,0.877"/>
									<TextBlock Text="{Binding Path=Title}" FontFamily="Calibri" Padding="0,0,0,0" Margin="55,0,0,0" VerticalAlignment="Top" d:LayoutOverrides="Height" FontWeight="Bold" FontSize="14" TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" x:Name="_title"/>
									<StackPanel VerticalAlignment="Bottom" Height="Auto" Margin="51,13,0,4" Orientation="Horizontal">
										<ListBox IsSynchronizedWithCurrentItem="True" ItemContainerStyle="{DynamicResource CategoriesItemsStyles}" ItemTemplate="{DynamicResource CategoriesTemplate}" ItemsSource="{Binding Path=Categories, Mode=Default}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}" x:Name="_cats" Width="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" IsEnabled="False" Style="{DynamicResource CategoriesListBoxStyle1}"/>
										<Label Content="{Binding Path=LengthFormated, Mode=Default}" x:Name="_length" Padding="5,2,0,0" FontFamily="Calibri"/>
									</StackPanel>
								</Grid>
								<Rectangle Fill="{x:Null}" Stroke="#18000000"/>
							</StackPanel>
							<!--<DataTemplate.Triggers>
								<Trigger Property="IsMouseOver" Value="True">
									<Trigger.ExitActions>
                    <BeginStoryboard Storyboard="{StaticResource OffLight}" x:Name="OffLight_BeginStoryboard"/>
									</Trigger.ExitActions>
									<Trigger.EnterActions>
										<BeginStoryboard Storyboard="{StaticResource Highlight}"/>
									</Trigger.EnterActions>
								</Trigger>
							</DataTemplate.Triggers>-->
						</DataTemplate>
					</ItemsControl.ItemTemplate>
				</ItemsControl>
			</StackPanel>
		</DataTemplate>
		<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
			<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsSelected" Value="true"/>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="Selector.IsSelectionActive" Value="false"/>
								</MultiTrigger.Conditions>
							</MultiTrigger>
							<Trigger Property="IsEnabled" Value="false"/>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<DataTemplate x:Key="CategoriesTemplate">
			<StackPanel Width="Auto" Height="Auto" Orientation="Horizontal">
				<Rectangle Fill="{Binding Converter={StaticResource CategoryColorValueConvertor}, Mode=OneWay}" Stroke="{x:Null}" Width="8" Height="8"/>
				<Label Content="{Binding}" Padding="0,0,0,0" Foreground="#FF000000" FontFamily="Calibri" Width="Auto" Height="Auto" Margin="5,0,0,0"/>
			</StackPanel>
		</DataTemplate>
		<Style x:Key="CategoriesItemsStyles" TargetType="{x:Type ListBoxItem}">
			<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsSelected" Value="true"/>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="Selector.IsSelectionActive" Value="false"/>
								</MultiTrigger.Conditions>
							</MultiTrigger>
							<Trigger Property="IsEnabled" Value="false"/>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="VerticalScrollBarBackground" EndPoint="1,0" StartPoint="0,0">
			<GradientStop Color="#E1E1E1" Offset="0"/>
			<GradientStop Color="#EDEDED" Offset="0.20"/>
			<GradientStop Color="#EDEDED" Offset="0.80"/>
			<GradientStop Color="#E3E3E3" Offset="1"/>
		</LinearGradientBrush>
		<Style x:Key="ScrollBarButton" TargetType="{x:Type RepeatButton}">
			<Setter Property="OverridesDefaultStyle" Value="true"/>
			<Setter Property="Focusable" Value="false"/>
			<Setter Property="IsTabStop" Value="false"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type RepeatButton}">
						<Microsoft_Windows_Themes:ScrollChrome SnapsToDevicePixels="true" x:Name="Chrome" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="{TemplateBinding Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph}"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="VerticalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
			<Setter Property="OverridesDefaultStyle" Value="true"/>
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Focusable" Value="false"/>
			<Setter Property="IsTabStop" Value="false"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type RepeatButton}">
						<Rectangle Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Fill="{TemplateBinding Background}"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
			<Setter Property="OverridesDefaultStyle" Value="true"/>
			<Setter Property="IsTabStop" Value="false"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Thumb}">
						<Rectangle Stroke="#FFC5C5C5" RadiusY="8.5" RadiusX="8.5">
							<Rectangle.Fill>
								<LinearGradientBrush EndPoint="1.081,0.5" StartPoint="-0.101,0.5">
									<GradientStop Color="#FFDEDEDE" Offset="0"/>
									<GradientStop Color="#FFD6D6D6" Offset="0.982"/>
									<GradientStop Color="#FFF4F4F4" Offset="0.442"/>
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<!--<Microsoft_Windows_Themes:ScrollChrome SnapsToDevicePixels="true" x:Name="Chrome" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsDragging}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="{TemplateBinding Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph}"/>-->
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<SolidColorBrush x:Key="ScrollBarDisabledBackground" Color="#F4F4F4"/>
		<LinearGradientBrush x:Key="HorizontalScrollBarBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#E1E1E1" Offset="0"/>
			<GradientStop Color="#EDEDED" Offset="0.20"/>
			<GradientStop Color="#EDEDED" Offset="0.80"/>
			<GradientStop Color="#E3E3E3" Offset="1"/>
		</LinearGradientBrush>
		<Style x:Key="HorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
			<Setter Property="OverridesDefaultStyle" Value="true"/>
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Focusable" Value="false"/>
			<Setter Property="IsTabStop" Value="false"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type RepeatButton}">
						<Rectangle Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Fill="{TemplateBinding Background}"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="VerticalScrollBarStyle" TargetType="{x:Type ScrollBar}">
			<Setter Property="Background" Value="{StaticResource VerticalScrollBarBackground}"/>
			<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
			<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
			<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ScrollBar}">
						<Grid SnapsToDevicePixels="true" x:Name="Bg">
							<Grid.Background>
								<LinearGradientBrush EndPoint="1.029,0.596" StartPoint="0.017,0.596">
									<GradientStop Color="#FFBFBFBF" Offset="0"/>
									<GradientStop Color="#FFF6F6F6" Offset="1"/>
								</LinearGradientBrush>
							</Grid.Background>
							<!--<Grid.RowDefinitions>
								<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
								<RowDefinition Height="0.00001*"/>
								<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
							</Grid.RowDefinitions>-->
							<RepeatButton IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="UpArrow" Command="{x:Static ScrollBar.LineUpCommand}" Visibility="Collapsed"/>
							<Track IsEnabled="{TemplateBinding IsMouseOver}" x:Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
								<Track.DecreaseRepeatButton>
									<RepeatButton Style="{StaticResource VerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageUpCommand}"/>
								</Track.DecreaseRepeatButton>
								<Track.IncreaseRepeatButton>
									<RepeatButton Style="{StaticResource VerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageDownCommand}"/>
								</Track.IncreaseRepeatButton>
								<Track.Thumb>
									<Thumb Style="{StaticResource ScrollBarThumb}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="VerticalGripper"/>
								</Track.Thumb>
							</Track>
							<RepeatButton IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}" Grid.Row="2" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="DownArrow" Command="{x:Static ScrollBar.LineDownCommand}" Visibility="Collapsed"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false"/>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Style.Triggers>
				<Trigger Property="Orientation" Value="Horizontal">
					<Setter Property="Width" Value="Auto"/>
					<Setter Property="MinWidth" Value="0"/>
					<Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
					<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
					<Setter Property="Background" Value="{StaticResource HorizontalScrollBarBackground}"/>
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="{x:Type ScrollBar}">
								<Grid SnapsToDevicePixels="true" x:Name="Bg" Background="{TemplateBinding Background}">
									<Grid.ColumnDefinitions>
										<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
										<ColumnDefinition Width="0.00001*"/>
										<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
									</Grid.ColumnDefinitions>
									<RepeatButton IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="LeftArrow" Command="{x:Static ScrollBar.LineLeftCommand}"/>
									<Track IsEnabled="{TemplateBinding IsMouseOver}" x:Name="PART_Track" Grid.Column="1">
										<Track.DecreaseRepeatButton>
											<RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageLeftCommand}"/>
										</Track.DecreaseRepeatButton>
										<Track.IncreaseRepeatButton>
											<RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageRightCommand}"/>
										</Track.IncreaseRepeatButton>
										<Track.Thumb>
											<Thumb Style="{StaticResource ScrollBarThumb}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="HorizontalGripper"/>
										</Track.Thumb>
									</Track>
									<RepeatButton IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}" Grid.Column="2" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="RightArrow" Command="{x:Static ScrollBar.LineRightCommand}"/>
								</Grid>
								<ControlTemplate.Triggers>
									<Trigger Property="IsEnabled" Value="false">
										<Setter Property="Background" TargetName="Bg" Value="{StaticResource ScrollBarDisabledBackground}"/>
									</Trigger>
								</ControlTemplate.Triggers>
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Trigger>
			</Style.Triggers>
		</Style>
		<Style x:Key="ScrollViewerStyle1" TargetType="{x:Type ScrollViewer}">
			<Style.Triggers>
				<Trigger Property="IsEnabled" Value="false">
					<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
				</Trigger>
			</Style.Triggers>
		</Style>
		<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
		<Style x:Key="CategoriesListBoxStyle1" TargetType="{x:Type ListBox}">
			<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBox}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
							<ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}" x:Name="scrollViewer" Foreground="#FF000000">
								<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
							</ScrollViewer>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false"/>
							<Trigger Property="IsGrouping" Value="true">
								<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<DataTemplate x:Key="ValuesTemplate">
			<StackPanel>
				<Image Source="{Binding Path=IconUrl}"/>
				<TextBlock Text="{Binding Path=Name}"/>
				<ItemsControl ItemsSource="{Binding Path=Programs}">
					<ItemsControl.ItemTemplate>
						<DataTemplate>
							<StackPanel>
								<TextBlock Text="{Binding Path=Title}"/>
							</StackPanel>
						</DataTemplate>
					</ItemsControl.ItemTemplate>
				</ItemsControl>
			</StackPanel>
		</DataTemplate>
		<Storyboard x:Key="ShowProgramDetails">
			<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_channels" Storyboard.TargetProperty="(FrameworkElement.Margin)">
				<SplineThicknessKeyFrame KeySpline="1,0,0,1" KeyTime="00:00:00.4000000" Value="-334,0,0,0"/>
			</ThicknessAnimationUsingKeyFrames>
			<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_backBt" Storyboard.TargetProperty="(FrameworkElement.Margin)">
				<SplineThicknessKeyFrame KeyTime="00:00:00.4000000" Value="10,0,0,0" KeySpline="1,0,0,1"/>
			</ThicknessAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="HideProgramDetails">
			<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_channels" Storyboard.TargetProperty="(FrameworkElement.Margin)">
				<SplineThicknessKeyFrame KeyTime="00:00:00.4000000" Value="0,0,0,0" KeySpline="1,0,0,1"/>
			</ThicknessAnimationUsingKeyFrames>
			<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_backBt" Storyboard.TargetProperty="(FrameworkElement.Margin)">
				<SplineThicknessKeyFrame KeyTime="00:00:00.4000000" Value="-60,0,0,0" KeySpline="1,0,0,1"/>
			</ThicknessAnimationUsingKeyFrames>
		</Storyboard>
		<Style x:Key="ButtonFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle SnapsToDevicePixels="true" Margin="2" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="HeaderButtonStyle" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
							<Border Margin="0,0,4,4" Background="#FF3B3B3B" CornerRadius="5,5,5,5" BorderThickness="1,1,1,1">
								<Border.BorderBrush>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#99000000" Offset="0"/>
										<GradientStop Color="#7EFFFFFF" Offset="1"/>
										<GradientStop Color="#99313131" Offset="0.703"/>
									</LinearGradientBrush>
								</Border.BorderBrush>
								<Border Width="44.493" Height="25.96" CornerRadius="5,5,5,5">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#00FFFFFF" Offset="0"/>
											<GradientStop Color="#4CFEFEFE" Offset="0.122"/>
											<GradientStop Color="#00FFFFFF" Offset="0.611"/>
										</LinearGradientBrush>
									</Border.Background>
									<Label Content="{TemplateBinding Content}" FontFamily="{TemplateBinding FontFamily}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF" FontWeight="{TemplateBinding FontWeight}" FontStretch="Normal" FontSize="{TemplateBinding FontSize}"/>
								</Border>
							</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="BackButtonStyle" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
							<Border Margin="0,0,4,4" Background="#FF333333" CornerRadius="5,5,5,5" BorderThickness="1,1,1,1">
								<Border.BorderBrush>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#99000000" Offset="0"/>
										<GradientStop Color="#7ED0D0D0" Offset="1"/>
										<GradientStop Color="#99313131" Offset="0.956"/>
									</LinearGradientBrush>
								</Border.BorderBrush>
								<Border Width="Auto" Height="25.96" CornerRadius="5,5,5,5">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#19FFFFFF" Offset="0"/>
											<GradientStop Color="#58FEFEFE" Offset="0.048"/>
											<GradientStop Color="#00FFFFFF" Offset="0.52"/>
											<GradientStop Color="#17FEFEFE" Offset="0.515"/>
										</LinearGradientBrush>
									</Border.Background>
									<Label Content="{TemplateBinding Content}" FontFamily="{TemplateBinding FontFamily}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF" FontWeight="{TemplateBinding FontWeight}" FontStretch="Normal" FontSize="{TemplateBinding FontSize}" Margin="8,0,8,0"/>
								</Border>
							</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="InfoButStyle" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid Width="Auto" Height="Auto">
							<Ellipse Fill="#00000000" Stroke="{x:Null}" Width="18" Height="18" x:Name="ellipse"/>
							<Label HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="0,0,2,0" VerticalAlignment="Center" Content="i" FontFamily="Monotype Corsiva" FontSize="16" FontWeight="Normal" Foreground="#FFDEDEDE" Padding="0,0,0,0" Width="Auto" Height="Auto"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Setter Property="Fill" TargetName="ellipse" Value="#4B000000"/>
							</Trigger>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Storyboard x:Key="ShowInfoButton">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_frontFlipButton" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="HideInfoButton">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_frontFlipButton" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<DataTemplate x:Key="DataTemplate1">
			<Label Content="Label"/>
		</DataTemplate>
		<DataTemplate x:Key="CountriesGrabbersTemplate">
			<StackPanel>
				<Label Content="{Binding Path=Value, Mode=OneWay}" Padding="5,1,5,1"/>
			</StackPanel>
		</DataTemplate>
		<DataTemplate x:Key="ConfigChannelsListTemplate">
			<TextBlock Text="{Binding}"/>
		</DataTemplate>
		<DataTemplate x:Key="ConfigChannelsListTemplate1">
			<StackPanel Orientation="Horizontal" Height="30">
				<CheckBox VerticalContentAlignment="Center" x:Name="_checkBox" Margin="0,0,5,0" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding Path=Selected, Mode=Default}" />
				<Image HorizontalAlignment="Center" MaxHeight="30" MaxWidth="30" VerticalAlignment="Center" Width="{Binding Path=ChannelIconUrl, Converter={StaticResource ChannelLogoWidthValueConverter}, Mode=Default}" Height="30" Source="{Binding Path=ChannelIconUrl}" Stretch="Uniform" Margin="0,0,10,0"/>
				<Label FontFamily="Calibri" Content="{Binding Path=ChannelName}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
			</StackPanel>
		</DataTemplate>
		<Style x:Key="CountryChannelsListboxStyle" TargetType="{x:Type ListBox}">
			<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBox}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
							<ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden" Template="{DynamicResource ScrollViewerControlTemplate1}">
								<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
							</ScrollViewer>

						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
							</Trigger>
							<Trigger Property="IsGrouping" Value="true">
								<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
    	<Style x:Key="ChannelsListboxStyle" TargetType="{x:Type ListBox}">
    		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
    		<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
    		<Setter Property="BorderThickness" Value="1"/>
    		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    		<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
    		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
    		<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
    		<Setter Property="VerticalContentAlignment" Value="Center"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type ListBox}">
    					<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
    						<ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}" Width="Auto" Height="Auto">
    							<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
    						</ScrollViewer>
    					</Border>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsEnabled" Value="false">
    							<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    						</Trigger>
    						<Trigger Property="IsGrouping" Value="true">
    							<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<Storyboard x:Key="StartRefresh">
    		<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
    			<SplineColorKeyFrame KeySpline="1,0,1,1" KeyTime="00:00:00" Value="#00000000"/>
    			<SplineColorKeyFrame KeySpline="1,0,1,1" KeyTime="00:00:00.3000000" Value="#CB000000"/>
    		</ColorAnimationUsingKeyFrames>
    		<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.Visibility)">
    			<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
    			<DiscreteObjectKeyFrame KeyTime="00:00:00.3000000" Value="{x:Static Visibility.Visible}"/>
    		</ObjectAnimationUsingKeyFrames>
    	</Storyboard>
    	<Storyboard x:Key="EndRefresh">
    		<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.Visibility)">
    			<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
    			<DiscreteObjectKeyFrame KeyTime="00:00:00.3000000" Value="{x:Static Visibility.Collapsed}"/>
    		</ObjectAnimationUsingKeyFrames>
    		<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
    			<SplineColorKeyFrame KeyTime="00:00:00" Value="#CB000000"/>
    			<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
    		</ColorAnimationUsingKeyFrames>
    	</Storyboard>
    	<DataTemplate x:Key="ActiveGrabberTemplate">
    		<Label Content="{Binding}"/>
    	</DataTemplate>
    	<ObjectDataProvider x:Key="GrabbersDS" d:IsDataSource="True"/>
    	<DataTemplate x:Key="GrabbersTemplate">
    		<StackPanel>
    			<TextBlock Text="{Binding Path=Name, Mode=Default}"/>
    		</StackPanel>
    	</DataTemplate>
    	<DataTemplate x:Key="GrabberChannelsTemplate">
    		<StackPanel>
    			<ItemsControl ItemsSource="{Binding Path=Channels, Mode=OneWay}">
    				<ItemsControl.ItemTemplate>
    					<DataTemplate>
                <StackPanel Orientation="Horizontal" Height="30">
                  <CheckBox VerticalContentAlignment="Center" x:Name="_checkBox" Margin="0,0,5,0" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding Path=Selected, Mode=Default}" />
                  <Image HorizontalAlignment="Center" MaxHeight="30" MaxWidth="30" VerticalAlignment="Center" Width="{Binding Path=ChannelIconUrl, Converter={StaticResource ChannelLogoWidthValueConverter}, Mode=Default}" Height="30" Source="{Binding Path=ChannelIconUrl}" Stretch="Uniform" Margin="0,0,10,0"/>
                  <Label FontFamily="Calibri" Content="{Binding Path=ChannelName}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </StackPanel>
    					</DataTemplate>
    				</ItemsControl.ItemTemplate>
    			</ItemsControl>
    		</StackPanel>
    	</DataTemplate>
    	<DataTemplate x:Key="ActiveGrabberTemplate1">
        <StackPanel Orientation="Horizontal" Height="30">
          <CheckBox VerticalContentAlignment="Center" x:Name="_checkBox" Margin="0,0,5,0" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding Path=Selected, Mode=Default}" />
          <Image HorizontalAlignment="Center" MaxHeight="30" MaxWidth="30" VerticalAlignment="Center" Width="{Binding Path=ChannelIconUrl, Converter={StaticResource ChannelLogoWidthValueConverter}, Mode=Default}" Height="30" Source="{Binding Path=ChannelIconUrl}" Stretch="Uniform" Margin="0,0,10,0"/>
          <Label FontFamily="Calibri" Content="{Binding Path=ChannelName}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        </StackPanel>
    	</DataTemplate>
    	<Storyboard x:Key="ShowRefreshBt">
    		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_refreshBt" Storyboard.TargetProperty="(FrameworkElement.Margin)">
    			<SplineThicknessKeyFrame KeyTime="00:00:00.3000000" Value="10,0,0,0" KeySpline="1,0,1,1"/>
    		</ThicknessAnimationUsingKeyFrames>
    	</Storyboard>
    	<Storyboard x:Key="RetractRefreshBt">
    		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_refreshBt" Storyboard.TargetProperty="(FrameworkElement.Margin)">
    			<SplineThicknessKeyFrame KeyTime="00:00:00.3000000" Value="-90,0,0,0" KeySpline="1,0,1,1"/>
    		</ThicknessAnimationUsingKeyFrames>
    	</Storyboard>
    </ResourceDictionary>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseEnter">
			<BeginStoryboard Storyboard="{StaticResource ShowInfoButton}" x:Name="ShowInfoButton_BeginStoryboard"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave">
			<BeginStoryboard Storyboard="{StaticResource HideInfoButton}" x:Name="HideInfoButton_BeginStoryboard"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded"/>
	</UserControl.Triggers>

	<Grid x:Name="_root">
		<Grid Visibility="Visible" HorizontalAlignment="Stretch" x:Name="_backSide" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Margin="0,0,0,0.5" d:IsHidden="True">
			<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
				<Border x:Name="_header1" Height="45.349">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,0.812" StartPoint="0.5,0">
							<GradientStop Color="#FFC5C5C5" Offset="0"/>
							<GradientStop Color="#FF000000" Offset="1"/>
							<GradientStop Color="#FF535353" Offset="0.036"/>
						</LinearGradientBrush>
					</Border.Background>
					<Grid Width="328" Height="45.349"/>
				</Border>
				<Border x:Name="_content1" Height="338.44" Background="#FFFFFFFF" ClipToBounds="True" HorizontalAlignment="Stretch">
					<StackPanel Width="Auto" Height="Auto" HorizontalAlignment="Stretch" Orientation="Vertical">
						<Border Height="Auto" CornerRadius="10,10,10,10" Background="{x:Null}" BorderBrush="#FFA6AAAB" BorderThickness="1,1,1,1" Visibility="Visible" x:Name="_errorBlock_Copy" Width="308" Margin="0,10,0,0">
							<StackPanel Width="306" Height="Auto">
								<Grid Height="30" Width="306">
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="0.291*"/>
										<ColumnDefinition Width="0.709*"/>
									</Grid.ColumnDefinitions>
									<Label HorizontalAlignment="Right" VerticalAlignment="Center" Content="Country" FontFamily="Calibri" Foreground="#FFA4B6B6" Margin="0,0,10,0"/>
									<ComboBox IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Column="1" d:LayoutOverrides="Width" x:Name="_countriesList" ItemTemplate="{DynamicResource GrabbersTemplate}" FontFamily="Calibri" FontWeight="Normal" ItemsSource="{Binding Path=Values, Mode=Default, Source={StaticResource GrabbersDS}}" SelectedItem="{Binding Path=ActiveGrabber, Mode=Default, Source={StaticResource GrabbersDS}}"/>
								</Grid>
								<Grid Height="Auto" Width="306">
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="0.291*"/>
										<ColumnDefinition Width="0.709*"/>
									</Grid.ColumnDefinitions>
									<Label HorizontalAlignment="Right" VerticalAlignment="Top" Content="Channels" FontFamily="Calibri" Foreground="#FFA4B6B6" Margin="0,0,10,0"/>
									<ListBox IsSynchronizedWithCurrentItem="True" Grid.Column="1" HorizontalAlignment="Stretch" x:Name="_countryChannelsList" ItemTemplate="{DynamicResource ActiveGrabberTemplate1}" MaxHeight="280" Height="Auto" BorderBrush="{x:Null}" Background="{x:Null}" Style="{DynamicResource CountryChannelsListboxStyle}" ItemsSource="{Binding Path=ActiveGrabber.Channels, Mode=Default, Source={StaticResource GrabbersDS}}"/>
								</Grid>
							</StackPanel>
						</Border>
					</StackPanel>
				</Border>
				<Border x:Name="_footer1" Height="45.349" Width="Auto">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,0.812" StartPoint="0.5,0">
							<GradientStop Color="#FFC5C5C5" Offset="0"/>
							<GradientStop Color="#FF000000" Offset="1"/>
							<GradientStop Color="#FF535353" Offset="0.036"/>
						</LinearGradientBrush>
					</Border.Background>
					<Grid Width="356" Height="45.349">
						<Button Content="Save" Style="{DynamicResource BackButtonStyle}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FFFFFFFF" FontFamily="Calibri" FontWeight="Bold" FontSize="12" x:Name="_saveBt" Cursor="Hand" Click="_backBt_Click" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,35,0"/>
						<Button Content="Cancel" Style="{DynamicResource BackButtonStyle}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FFFFFFFF" FontFamily="Calibri" FontWeight="Bold" FontSize="12" x:Name="_cancelBt" Cursor="Hand" Click="_backBt_Click" HorizontalAlignment="Left" Margin="11,6.694,35,6.695" d:LayoutOverrides="Height" d:IsHidden="True"/>
					</Grid>
				</Border>
			</StackPanel>
		</Grid>
		<Grid HorizontalAlignment="Stretch" x:Name="_frontSide" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Margin="0,0,0,0.5">
			<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
				<Border x:Name="_header" Height="45.349">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,0.812" StartPoint="0.5,0">
							<GradientStop Color="#FFC5C5C5" Offset="0"/>
							<GradientStop Color="#FF000000" Offset="1"/>
							<GradientStop Color="#FF535353" Offset="0.036"/>
						</LinearGradientBrush>
					</Border.Background>
					<Grid Width="328" Height="45.349" ClipToBounds="True">
						<Button HorizontalAlignment="Left" VerticalAlignment="Center" Content="Back" Margin="-60,0,0,0" Style="{DynamicResource BackButtonStyle}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FFFFFFFF" FontFamily="Calibri" FontWeight="Bold" FontSize="12" x:Name="_backBt" Cursor="Hand" Click="_backBt_Click"/>
						<Button HorizontalAlignment="Right" x:Name="_frontFlipButton" VerticalAlignment="Top" Content="Setup" FontSize="10" Style="{DynamicResource InfoButStyle}" Opacity="0" Margin="0,5,6,0" FontWeight="Bold"/>
					</Grid>
				</Border>
				<Border x:Name="_content" Height="338.44" Background="#FFFFFFFF" ClipToBounds="True" Margin="0,1,0,0">
					<StackPanel Width="Auto" Height="Auto">
						<Border Height="Auto" CornerRadius="10,10,10,10" Background="{x:Null}" BorderBrush="#FFA6AAAB" Margin="10,5,10,10" BorderThickness="1,1,1,1" Visibility="Collapsed" x:Name="_errorBlock">
							<TextBlock Text="No channels configuration found. Please configure myGuide before you use it." TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" FontFamily="Calibri" Width="207.163"/>
						</Border>
						<Grid Width="Auto" Height="Auto">
							<StackPanel Width="Auto" Orientation="Horizontal">
								<ListBox IsSynchronizedWithCurrentItem="True" ItemTemplate="{DynamicResource ChannelsTemplate}" ItemsSource="{Binding Path=Channels, Mode=OneWay, Source={StaticResource GuideDS}}" x:Name="_channels" Width="327" Height="339" ScrollViewer.VerticalScrollBarVisibility="Hidden" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}" Background="#FFFFFFFF" BorderBrush="{x:Null}" BorderThickness="0,0,0,0" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.CanContentScroll="False" Style="{DynamicResource ChannelsListboxStyle}" MinHeight="0"/>
								<Guide:ProgramDetails x:Name="_programDetails" Width="327" Height="339"/>
							</StackPanel>
							<Border Visibility="Collapsed" HorizontalAlignment="Stretch" x:Name="border" VerticalAlignment="Top" Width="Auto" Background="#CC000000" Margin="0,0,0,0" Height="340">
								<StackPanel Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center">
									<Label Content="[ Refreshing ]" Foreground="#FFFFFFFF"/>
									<Guide:Loader Width="Auto" Height="Auto" x:Name="_loader" Background="{x:Null}" BorderBrush="{x:Null}"/>
								</StackPanel>
							</Border>
						</Grid>
					</StackPanel>
				</Border>
				<Border x:Name="_footer" Height="45.349" Width="328" ClipToBounds="True">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,0.812" StartPoint="0.5,0">
							<GradientStop Color="#FFC5C5C5" Offset="0"/>
							<GradientStop Color="#FF000000" Offset="1"/>
							<GradientStop Color="#FF535353" Offset="0.036"/>
						</LinearGradientBrush>
					</Border.Background>
					<StackPanel Orientation="Horizontal">
						<Button Content="Refresh" Style="{DynamicResource BackButtonStyle}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FFFFFFFF" FontFamily="Calibri" FontWeight="Bold" FontSize="12" x:Name="_refreshBt" Cursor="Hand" Click="_backBt_Click" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,0,0,0"/>
					</StackPanel>
				</Border>
			</StackPanel>
		</Grid>
		<Grid HorizontalAlignment="Stretch" x:Name="_flipZone" VerticalAlignment="Stretch" Width="Auto" Height="Auto" d:IsHidden="True" Margin="0,0,0,0.5"/>
	</Grid>
</UserControl>